package com.ym.excel.jfree;

import org.jfree.chart.JFreeChart;

/**
 * @Author: smuswc
 * @Date: 2018/2/7 13:49
 * @Description:
 */
public interface YMChart {

    /**
     * 绘制图片信息
     * @param jFreeChart
     * @param path
     * @return
     * @throws Exception
     */
    String drawChart(JFreeChart jFreeChart, String path) throws Exception;

    /**
     * 绘制图片 并指定生成图片大小
     * @param jFreeChart
     * @param path
     * @param width
     * @param height
     * @return
     * @throws Exception
     */
    String drawChart(JFreeChart jFreeChart, String path, Integer width, Integer height) throws Exception;

}
